<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    	               "http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<link href="Standard.css" rel="stylesheet" type="text/css">
	  	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	  	<title>Cache Page Title</title>
	</head>
	<body>
<%@ page import="java.util.*" %>
<%@ page import="jpa.*" %>
<%@ page import="javax.naming.*" %>
<%@include file="header.jsp" %>
	<% 		
	String id = request.getParameter("id");
	if(id == null && id.equals(""))
	{
		id = "1";
	}
	Cache c = stateless.getCache(id);
	Set<Header> h = c.getHeaders();
	%>
	
<!-- <div id="container"> -->
<h1><a id="top"><%=c.getCacheName()%></a></h1>
		<hr>		
	    <div id="main">
		
		<div id="mapImage">
			<h1>Location</h1>
			
			<hr>
			<!-- NEED TO FIX TO GET URLs SHOWING -->
			<img src="<%=c.getCachePicurl()%>.jpg" width="300" height="300">			
			<p id="mainP">Longitude: <%=c.getCacheLongitude()%> Latitude: <%=c.getCacheLatitude()%></p>			
		</div>
	
		<p>
		<%=c.getCacheDescription()%>
		</p>

	
		
		<br /> <br />
		
		<ol>
		<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contents</b>
		<p></p>
		<li><a href="#Foods">Foods</a></li>
		<li><a href="#Proxy">Proxy</a></li>		
		<li><a href="#Spain">Spain</a></li>
		<li><a href="#Italy">Italy</a></li>
		<li><a href="#England">England</a></li>
		<li><a href="#France">France</a></li>
		</ol>
		
		<br /> <br /> <br />
		</div> <!-- main div end-->
		
		<div id="newHeader">
		<h1><a id="Foods">Foods</a></h1>
		<hr>
		
			<div id="mapImage">
			<h1>Foods</h1>
			
			<hr>
			
			<img src="food.jpg">			
			<p id="mainP">Hamburger</p>			
			</div>		
	
		
		<p>
		Lorem ipsum dolor sit amet, eos an ubique legimus gubergren, quo ad alii conceptam.
		Nihil aliquid rationibus eu has, noluisse maluisset liberavisse ad nec. Nam no saepe
		euismod admodum, eu vel sumo scaevola verterem. Ullamcorper instructior no has, delicata
		repudiandae his no, ex saperet aliquando per. Ne usu posse inani suscipiantur, ius cu
		iriure aperiri, at tota luptatum expetendis quo. Cu est amet sadipscing.
		</p>
		
		<br /> <br /> <br />
		
		<p>
		Lorem ipsum dolor sit amet, eos an ubique legimus gubergren, quo ad alii conceptam.
		Nihil aliquid rationibus eu has, noluisse maluisset liberavisse ad nec. Nam no saepe
		euismod admodum, eu vel sumo scaevola verterem. Ullamcorper instructior no has, delicata
		repudiandae his no, ex saperet aliquando per. Ne usu posse inani suscipiantur, ius cu
		iriure aperiri, at tota luptatum expetendis quo. Cu est amet sadipscing.
		
		<br /> <br />
		<a href="#top">Back to top</a>
		</p>
		</div>

		<!--  </div> -->
		<div id="footer"></div>
	</body>
</html> 
